import Vue from 'vue'

//antd components, load when require
import {
    Form,
    Menu,
    Icon,
    Card,
    Tabs,
    Input,
    Modal,
    Table,
    Steps,
    Anchor,
    Avatar,
    Button,
    Layout,
    Upload,
    Select,
    Popover,
    Divider,
    message,
    Tooltip,
    DatePicker,
    Breadcrumb,
    Pagination,
    InputNumber,
    LocaleProvider,
    Row,
    Col,
    Radio,
    Carousel,
    Switch,
    Tree,
    Checkbox,
    Alert,
    Popconfirm,
    Calendar,
    Badge,
    List,
    Tag,
    Spin
} from 'ant-design-vue';

Vue.use(Switch);
Vue.use(Menu);
Vue.use(Icon);
Vue.use(Card);
Vue.use(Col);
Vue.use(Calendar);
Vue.use(Badge);
Vue.use(Carousel);
Vue.use(Row);
Vue.use(Form);
Vue.use(Tabs);
Vue.use(Input);
Vue.use(Modal);
Vue.use(Table);
Vue.use(Steps);
Vue.use(Anchor);
Vue.use(Upload);
Vue.use(Select);
Vue.use(Avatar);
Vue.use(Layout);
Vue.use(Button);
Vue.use(Popover);
Vue.use(Divider);
Vue.use(message);
Vue.use(Tooltip);
Vue.use(Pagination);
Vue.use(DatePicker);
Vue.use(Breadcrumb);
Vue.use(InputNumber);
Vue.use(LocaleProvider);
Vue.use(Row);
Vue.use(Col);
Vue.use(Radio);
Vue.use(Tree);
Vue.use(Checkbox);
Vue.use(Alert);
Vue.use(Popconfirm);
Vue.use(List);
Vue.use(Tag);
Vue.use(Spin);

Vue.prototype.$message = message;
Vue.prototype.$info = Modal.info;
Vue.prototype.$warning = Modal.warning;
Vue.prototype.$confirm = Modal.confirm;
Vue.prototype.$error = Modal.error;
Vue.prototype.$success = Modal.success;